//*****************************************************************************
//
// ABEC3 Solving Script
// Project: Horn H 400 on Finite Baffle 
//
//*****************************************************************************

// Embedding another file with vertex definitions

File="Solving Nodes.txt"


Control_Solver
  f1=100;  f2=3000;  NumFrequencies=20;  Abscissa=log  // Frequencies
  MeshFrequency=3kHz        // Auto-mesher
  Sym=xy; Dim=3D            // Double symmetry


// Elements, which form the horn-throat area
// and which will be connected to the LE-network 
// at observation stage (see Driving).

Elements  "Driver"
  RefNodes="Nodes"
  SubDomain=1
  SwapNormals
  501    1500    1501    1502
  503    1502    1501    1503
  505    1503    1501    1504
  507    1504    1501    1505
  509    1505    1501    1506
  511    1506    1501    1507   

Driving  
  RefElements="Driver"
  DrvGroup=1001


// Elements forming the horn-walls

Elements "Horn-Walls"
  RefNodes="Nodes"
  SubDomain=1
  Color=Blue
  101    1000    1100    1101    1001
  103    1001    1101    1102    1002
  201    1100    1200    1201    1101
  203    1101    1201    1202    1102
  105    1002    1102    1103    1003
  107    1003    1103    1104    1004
  205    1102    1202    1203    1103
  207    1103    1203    1204    1104
  109    1004    1104    1105    1005
  209    1104    1204    1205    1105 
  111    1005    1105    1106    1006
  211    1105    1205    1206    1106
  113    1006    1106    1107    1007
  213    1106    1206    1207    1107
  115    1007    1107    1108    1008
  215    1107    1207    1208    1108
  117    1008    1108    1109    1009
  217    1108    1208    1209    1109
  119    1009    1109    1110    1010
  219    1109    1209    1210    1110
  121    1010    1110    1111    1011
  221    1110    1210    1211    1111
  123    1011    1111    1112    1012
  223    1111    1211    1212    1112
  125    1012    1112    1113    1013
  225    1112    1212    1213    1113
  127    1013    1113    1114    1014
  227    1113    1213    1214    1114
  451    1014    1115    1116    1015
  453    1115    1114    1117    1116
  455    1114    1118    1117
  457    1114    1119    1118
  459    1114    1121    1120    1119
  461    1121    1214    1215    1120  


// Elements forming the finite-baffle
// in which the horn terminates.
// Note, here the flange belongs to SubDomain=1
// because it is within the interface.

Elements "Horn-Flange"
  RefNodes="Nodes"
  SubDomain=1
  301    1000    1300    1301    1100  
  303    1100    1301    1302    1303
  305    1100    1303    1304    1200


// Interface is box-shaped covering the mouth plus flange.
// The interface connects the horn-interior with the
// exterior radiation space.

Elements  "Interface Baffle"
  RefNodes="Nodes"
  SubDomain=1,2
  351    1350    1353    1352    1351
  353    1352    1354    1355    1351
  355    1353    1356    1354    1352

    
// In this example the radiation is from a finite baffle,
// which is formed by the horn-flange. 
// Strickly we would have to model also the outside-walls 
// of the horn. In order to avoid this, we can apply a simple 
// trick.
// Assuming that some approximation is allowed, we can reduce the
// outside-walls of the horn to a simple wall on the rear 
// of the horn-flange - note, as an approximation. 
// This means SubDomain=2 is bounded by a simple rectangular box.
// Five sides of this box are formed by the interface. 
// The rear-wall of this box is formed by following elements.

Elements  "Baffle Rear"
  RefNodes="Nodes"
  ElType=Exterior
  SubDomain=2
  Color=Green, 0.2
  370    1370    1371    1372    1373
  



